package com.kunbo.cn.controller.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.kunbo.cn.authority.RequiredPermission;

@Controller
@RequestMapping("/product")
public class ProductController {
	/**
     * 产品列表
     *
     * @return
     */
    @RequestMapping("/list")
    @RequiredPermission("/product/list") // 权限注解
    @ResponseBody
    public String list333() {
         // 省略产品列表查询逻辑
        return "有权限";
    }
 
    /**
     * 产品详情
     *
     * @return
     */
    @RequestMapping("/detail")
    @RequiredPermission("/product/detail") // 权限注解
    @ResponseBody
    public String detail3333() {
        // 省略查询产品详情的逻辑
        return "有权限";
    }
 
    /**
     * 删除产品
     *
     * @return
     */
    @RequestMapping("/delete")
    @RequiredPermission("/product/delete") 
    @ResponseBody
    public String delete333() {
        // 省略删除产品的逻辑
        return "有权限";
    }

}
